<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";%>

<%@ page import="com.fnn.entity.Book" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: gulu
  Date: 2024-03-28
  Time: 14:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
</head>
<style type="text/css">
    table {
        border-collapse: collapse;
        margin: 0 auto;
        text-align: center;
        width: 100vw;
    }

    table td, table th {
        border: 1px solid #cad9ea;
        color: #666;
        height: 30px;
    }

    table thead th {
        background-color: #CCE8EB;
        /*width: 100px;*/
    }

    table tr:nth-child(odd) {
        background: #fff;
    }

    table tr:nth-child(even) {
        background: #F5FAFA;
    }

    .table-hover > tbody > tr:hover {
        background-color: #f5f5f5;
    }
</style>
<body>
<div>
    新书推荐
    <div>
        <table>
            <tr>
                <th>图书名称</th>
                <th>图书作者</th>
                <th>出版社</th>
                <th>标准ISBN</th>
                <th>上架时间</th>
                <th>书籍状态</th>
                <th>借书人</th>
                <th>借阅时间</th>
                <th>预计归还时间</th>
                <th>操作</th>
            </tr>
            <c:forEach var="item" items="${newBooks}">
                <tr>
                    <th>${item.book_name}</th>
                    <th>${item.book_author}</th>
                    <th>${item.book_press}</th>
                    <th>${item.book_isbn}</th>
                    <th>${item.book_upload_time}</th>
                    <th>${item.book_status}</th>
                    <th>${item.borrower_id}</th>
                    <th>${item.borrowed_time}</th>
                    <th>${item.return_book_time}</th>
                    <th>${item.book_id}</th>
                </tr>
            </c:forEach>
        </table>
    </div>
    <div>
        < 1 > 共10页 到第<input type="text" placeholder="页">页
        <button onclick="">ok</button>
    </div>
</div>
<script>

</script>
</body>
</html>
